#pragma once
#include "ComDef.h"
#include "event_mgr.h"

class Player;
class PlayerComponent : public su::EventCom
{
public:
	Player& m_owner;

public:
	PlayerComponent(Player &player);


	void SDEBUG() {}//触发自动补全用, 实际代码被宏屏蔽了
	void SWARN() {}//触发自动补全用, 实际代码被宏屏蔽了
	void SERROR() {}//触发自动补全用, 实际代码被宏屏蔽了
#define SDEBUG(...) m_owner.Log(__FILE__, __LINE__, __FUNCTION__, su::LogLv::LL_DEBUG, ##__VA_ARGS__)
#define SWARN(...) m_owner.Log(__FILE__, __LINE__, __FUNCTION__, su::LogLv::LL_WARN, ##__VA_ARGS__)
#define SERROR(...) m_owner.Log(__FILE__, __LINE__, __FUNCTION__, su::LogLv::LL_ERROR, ##__VA_ARGS__)

};

